package init

import (
	"github.com/astaxie/beego"
)

//初始化配置文件

func InitConfig() {
	//根据环境判断自动读取哪个配置
	var path = "data/conf/_dev_conf.conf"
	LoadConfig(path)
	beego.BConfig.WebConfig.TemplateLeft = "[^"
	beego.BConfig.WebConfig.TemplateRight = "^]"
}

func LoadConfig(path string) {
	_ = beego.LoadAppConfig("ini", path)
}

//TODO 需要增加读取app目录 与 api目录下的config功能
